/**
 * Created by WYH on 17/4/13.
 */
angular.module('tribalc', [
    'ui.router',
    'footer',
    'navBar',
    'leftBar',
    'toolBar',
    'profile',
    'rentInfo',
    'lockList',
    'lockFillIn',
    'lockDelete',
    'lockAuthBase',
    'rentList',
    'rentAuth',
    'rentVerify',
    'rentRenew',
    'rentAdd',
    'rentCancelAuth',
    'ui.bootstrap.datetimepicker',
    'staffDelect',
    'companyRegister',
    'uploadStaff',
    'accountManager',
    'resetPassword',
    'noLock',
    'alert',
    'approveList',
    "companyInfo",
    "passwordEnter"
]).config(['$locationProvider' ,'$stateProvider', '$urlRouterProvider', function ( $locationProvider,$stateProvider, $urlRouterProvider) {

    $locationProvider.hashPrefix('');

    $urlRouterProvider.otherwise('');


    $stateProvider
        .state('login', {
            url: '',
            templateUrl: 'views/base/login.html'
        })
        .state('password', {
            url: '/password',
            templateUrl: 'views/base/password.html'
        })
        .state('register', {
            url: '/register',
            templateUrl: 'views/base/register.html'
        })
        .state('company', {
            url: '',
            templateUrl: 'views/company/base.html'
        })
        .state('company.companyStaff', {
            url: '/company/staff',
            templateUrl: 'views/company/staff_list.html'
        })
        .state('company.companyProfile', {
            url: '/company/profile',
            templateUrl: 'views/company/profile.html'
        })
        .state('company.companyLocks', {
            url: '/company/locks',
            templateUrl: 'views/company/locks.html'
        })
        //企业福利
        .state('company.companyWelfare', {
            url: '/company/welfare',
            templateUrl: 'views/company/welfare.html'
        })
        .state('company.companyaddWelfare', {
            url: '/company/add_welfare',
            templateUrl: 'views/company/add_welfare.html'
        })
        .state('company.companymoreWelfare',{
            url:'/company/more_welfare',
            templateUrl:'views/company/more_welfare.html'
        })
        .state('company.companyWelfareInfo',{
            url:'/company/welfare_info/:welfareId',
            templateUrl:'views/company/welfare_info.html'
        })

        .state('company.companyRent', {
            url: '/company/rent',
            templateUrl: 'views/company/rent.html'
        })
        .state('company.managerLocks', {
            url: '/manager/locks',
            templateUrl: 'views/lock/locks.html'
        })
        .state('company.approve', {
            url: '/manager/approve',
            templateUrl: 'views/company/approve.html'
        })
        .state('company.approveInfo', {
            url: '/manager/approve/:companyId',
            templateUrl: 'views/company/approve_detail.html'
        })

        .state('company.managerLockAuth', {
            url: '/manager/lock/auth',
            templateUrl: 'views/lock/lock_auth.html',
            params: { selectLock: {} }
        })
        .state('company.managerRents', {
            url: '/manager/rents',
            templateUrl: 'views/rent/rents.html'
        })
        .state('company.managerRentDetail', {
            url: '/manager/rent/:companyId',
            templateUrl: 'views/rent/rent_detail.html'
        })
        .state('account', {
            url: '/account',
            templateUrl: 'views/base/account_manager.html'
        });
    // .state('company.register', {
    //     url: '/company/register',
    //     templateUrl: 'views/company/register.html'
    // });


}]);

